<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
    	body{font-size:14px;color:#666;}
    	ul{padding:0;margin:0;}
    	a{text-decoration:none;color:#666;}
    	li{list-style:none;}
    	h3{margin:0;}
    	.clearfix:after{content:".";display:block;clear:both;visibility:hidden;overflow:hidden;height:0;}
    	.clearfix{zoom:1;}
    	.content{margin:20px auto;width:1200px;}
        .box{float:left;position:relative;margin-right:10px;width:390px;height:444px;overflow:hidden;outline:1px solid #afa;}
        .box .b-head{width:340;padding:0 20px 0 30px;height:55px;color:#fff;background:#76488e;}
        .box .b-head h3{float:left;height:50px;line-height:50px;font-size:26px;font-weight:400;}
        .box .b-head a{float:right;padding-right:20px;height:55px;line-height:55px;color:#fff;}
        .box .b-head a span{display:inline-block;margin-left:3px;width:15px;height:16px;background:url(imgs/1/sprite_index@1x.png) -154px -40px no-repeat;vertical-align:middle;}
        .box .b-content{display:none;width:360px;margin:0 auto;}
        .box .bc-active{display:block;}
        .box .b-content .bc-content{padding-top:0;}
		.box .b-content .bc-line{margin:auto;margin-top:18px;width:330px;height:1px;background:#eee;}
        .box .bc-sub{text-indent:10px;}
        .box .b_ind{margin-top:18px;text-align:center;font-size:0;}
        .box .b_ind li{display:inline-block;margin-right:10px;width:8px;height:8px;border-radius:50%;background:#c8c8c8;}
        .box .b_ind li.bi-active{background:#e01222;}
        .box .b-btn{position:absolute;top:50%;margin-top:-25px;display:none;width:20px;height:50px;line-height:50px;text-align:center;color:#797173;background:#f3f2f3;z-index:1;}
        .box .b-btnlt{left:0;}
        .box .b-btnrt{right:0;}

        /*右侧模块*/
        #box3{float:left;position:relative;width:390px;height:444px;overflow:hidden;outline:1px solid #afa;}
        #box3 .b-tab-head{margin:0 10px;width:370px;padding:6px 0 7px;border-bottom:1px solid #e7e7e7;}
        #box3 .b-tab-head li{float:left;padding-top:5px;width:20%;text-align:center;}
        #box3 .b-tab-head .b-th-line{float:right;height:17px;width:1px;background:#d2d1d1;vertical-align:middle;}
        #box3 .b-head{width:340;padding:0 20px 0 30px;height:55px;color:#fff;background:#e77005;}
        #box3 .b-head h3{float:left;height:50px;line-height:50px;font-size:26px;font-weight:400;}
        #box3 .b-head a{float:right;padding-right:20px;height:55px;line-height:55px;color:#fff;}
        #box3 .b-head a span{display:inline-block;margin-left:3px;width:15px;height:16px;background:url(imgs/1/sprite_index@1x.png) -154px -40px no-repeat;vertical-align:middle;}
        #box3 .b-tab{position:relative;}
        #box3 .b-tab .bt-colorBlock{position:absolute;bottom:1px;left:10px;width:58px;height:2px;background:#f10214;}
        #box3 .b-content{display:none;width:100%;padding:5px 10px;text-align:center;}
        #box3 .bc-active{display:block;}
        #box3 .bc-content a{float:left;padding-top:10px;width:123px;border-bottom:1px solid #e7e7e7;border-right:1px solid #e7e7e7;}
        #box3 .bc-content a:last-child{border-right:none;}
        #box3 .bc-contentsub a{border-bottom:none;}
        #box3 .bc-content a:hover{color:#c81623;}
        #box3 .bc-content a p{padding:0 11px;height:32px;line-height:16px;font-size:12px;word-break:break-all;word-wrap:break-word;overflow:hidden;}
    </style>
</head>
<body>
	<div class="content clearfix">
		<div id="box1" class="box">
	    	<div class="b-head .clearfix">
	    		<h3>会买专辑</h3>
	    		<a href="">甄选优质好物<span></span></a>
	    	</div>
	    	<div class="b-content bc-active">
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">手机追剧不发愁，4千毫安大电池任你看</p>
		    			<img src="imgs/1/5926813bN63c3b193.jpg" alt="">
		    			<img src="imgs/1/599a39f9N346f5b31.jpg" alt="">
		    			<img src="imgs/1/58dbb456N78528740.jpg" alt="">
	    			</a>
	    		</div>
	    		<div class="bc-line"></div>
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">清新森系连衣裙，非你莫属</p>
		    			<img src="imgs/1/58cb8d88Na4d13679.jpg" alt="">
		    			<img src="imgs/1/58a3bdb5N46d1d2af.jpg" alt="">
		    			<img src="imgs/1/58ceb619N150fe2e2.jpg" alt="">
	    			</a>
	    		</div>
	    	</div>
	    	<div class="b-content">
	    		<div class="bc-content">
	    			<a href="#">
	    				<p class="bc-sub">家装完毕购家电，一站式汇总更贴心</p>
		    			<img src="imgs/1/59092fbeNb6c2296a.jpg" alt="">
		    			<img src="imgs/1/599aa505N070ee14f.jpg" alt="">
		    			<img src="imgs/1/5979d30fN551b603b.jpg" alt="">
	    			</a>
	    		</div>
	    		<div class="bc-line"></div>
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">运动耳机助燃，嘻哈节奏为健身添动力</p>
		    			<img src="imgs/1/583d1f81N65ef6f61.jpg" alt="">
		    			<img src="imgs/1/58b3eca3N1a9612a3.jpg" alt="">
		    			<img src="imgs/1/58c6610fN8cdf13b8.jpg" alt="">
	    			</a>
	    		</div>
	    	</div>
	    	<div class="b-content">
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">网红直播，离不开这些美颜黑科技</p>
		    			<img src="imgs/1/58a27dbaNf16f9b98.jpg" alt="">
		    			<img src="imgs/1/58130a20Nae916523.jpg" alt="">
		    			<img src="imgs/1/5844f1eaN27e9cb02.jpg" alt="">	    				
	    			</a>
	    		</div>
	    		<div class="bc-line"></div>
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">初心不改，七夕用美味零食回味初恋时的甜蜜</p>
		    			<img src="imgs/1/56f4b679Ndc43c62a.jpg" alt="">
		    			<img src="imgs/1/572961f9N9881f0bb.jpg" alt="">
		    			<img src="imgs/1/59955ae9N2df8a72a.jpg" alt="">	    				
	    			</a>
	    		</div>
	    	</div>
	    	<a class="b-btn b-btnlt" href="#"><</a>
	    	<a class="b-btn b-btnrt" href="#">></a>
	    	<ul class="b_ind">
	    		<li class="bi-active"></li>
	    		<li class=""></li>
	    		<li class=""></li>
	    	</ul>
	    </div>
		<div id="box2" class="box">
	    	<div class="b-head .clearfix">
	    		<h3>会买专辑</h3>
	    		<a href="">甄选优质好物<span></span></a>
	    	</div>
	    	<div class="b-content bc-active">
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">手机追剧不发愁，4千毫安大电池任你看</p>
		    			<img src="imgs/1/5926813bN63c3b193.jpg" alt="">
		    			<img src="imgs/1/599a39f9N346f5b31.jpg" alt="">
		    			<img src="imgs/1/58dbb456N78528740.jpg" alt="">
	    			</a>
	    		</div>
	    		<div class="bc-line"></div>
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">清新森系连衣裙，非你莫属</p>
		    			<img src="imgs/1/58cb8d88Na4d13679.jpg" alt="">
		    			<img src="imgs/1/58a3bdb5N46d1d2af.jpg" alt="">
		    			<img src="imgs/1/58ceb619N150fe2e2.jpg" alt="">
	    			</a>
	    		</div>
	    	</div>
	    	<div class="b-content">
	    		<div class="bc-content">
	    			<a href="#">
	    				<p class="bc-sub">家装完毕购家电，一站式汇总更贴心</p>
		    			<img src="imgs/1/59092fbeNb6c2296a.jpg" alt="">
		    			<img src="imgs/1/599aa505N070ee14f.jpg" alt="">
		    			<img src="imgs/1/5979d30fN551b603b.jpg" alt="">
	    			</a>
	    		</div>
	    		<div class="bc-line"></div>
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">运动耳机助燃，嘻哈节奏为健身添动力</p>
		    			<img src="imgs/1/583d1f81N65ef6f61.jpg" alt="">
		    			<img src="imgs/1/58b3eca3N1a9612a3.jpg" alt="">
		    			<img src="imgs/1/58c6610fN8cdf13b8.jpg" alt="">
	    			</a>
	    		</div>
	    	</div>
	    	<div class="b-content">
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">网红直播，离不开这些美颜黑科技</p>
		    			<img src="imgs/1/58a27dbaNf16f9b98.jpg" alt="">
		    			<img src="imgs/1/58130a20Nae916523.jpg" alt="">
		    			<img src="imgs/1/5844f1eaN27e9cb02.jpg" alt="">	    				
	    			</a>
	    		</div>
	    		<div class="bc-line"></div>
	    		<div class="bc-content">
	    			<a href="#">
		    			<p class="bc-sub">初心不改，七夕用美味零食回味初恋时的甜蜜</p>
		    			<img src="imgs/1/56f4b679Ndc43c62a.jpg" alt="">
		    			<img src="imgs/1/572961f9N9881f0bb.jpg" alt="">
		    			<img src="imgs/1/59955ae9N2df8a72a.jpg" alt="">	    				
	    			</a>
	    		</div>
	    	</div>
	    	<a class="b-btn b-btnlt" href="#"><</a>
	    	<a class="b-btn b-btnrt" href="#">></a>
	    	<ul class="b_ind">
	    		<li class="bi-active"></li>
	    		<li class=""></li>
	    		<li class=""></li>
	    	</ul>
	    </div>	    
	    <div id="box3" class="">
	    	<div class="b-head .clearfix">
	    		<h3>排行榜</h3>
	    		<a href="">专属你的购物指南<span></span></a>
	    	</div>
	    	<div class="b-tab">
		    	<ul class="b-tab-head clearfix">
	    			<li><a href="#">手机通讯</a><span class="b-th-line"></span></li>
	    			<li><a href="#">床品套件</a><span class="b-th-line"></span></li>
	    			<li><a href="#">电脑整机</a><span class="b-th-line"></span></li>
	    			<li><a href="#">夹克</a><span class="b-th-line"></span></li>
	    			<li><a href="#">运动护具</a></li>
	    		</ul>
	    		<div class="bt-colorBlock"></div>
	    	</div>
	    	<div class="b-content bc-active">
	    		<div class="bc-content clearfix">
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t3022/318/2270002105/88039/b5c9c416/57d51334N615581bf.jpg!q90.webp" alt="">
	    				<p>苹果(Apple) iPhone7 Plus 4G手机 金色 全网通(32G)</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img13.360buyimg.com/mobilecms/s100x100_jfs/t5851/169/3582460813/258886/ed4e13c/593e4ab1N9fb808dd.jpg!q90.webp" alt="">
	    				<p>荣耀9 全网通 尊享版 6GB+128GB 海鸥灰 移动联通电信4G手机 双卡双待</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t1969/105/2718209644/66583/1c729766/56e64cbfN7d2a242c.jpg!q90.webp" alt="">
	    				<p>雷曼克斯（LineMax）LM-002A音量控制 专业对讲机耳机 K口通用</p>
	    			</a>
	    		</div>
	    		<div class="bc-content bc-contentsub">
	    			<a href="#">
	    				<img src="https://img11.360buyimg.com/mobilecms/s100x100_jfs/t7561/330/1109985699/328229/1d687964/599a802fN43102ee3.jpg!q90.webp" alt="">
	    				<p>荣耀 V9 全网通 标配版 4GB+64GB 极光蓝 移动联通电信4G手机 双卡双待</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img14.360buyimg.com/mobilecms/s100x100_jfs/t5593/65/2224053848/135606/c82c5bc5/592e9fe6N95c18c31.jpg!q90.webp" alt="">
	    				<p>OPPO R11 全网通4G+64G  双卡双待手机 金色</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img14.360buyimg.com/mobilecms/s100x100_jfs/t3277/274/7238873352/272093/a92c29bb/58b3f5a7N09b695ea.jpg!q90.webp" alt="">
	    				<p>华为 HUAWEI P10 全网通 4GB+128GB 玫瑰金 移动联通电信4G手机 双卡双待</p>
	    			</a>
	    		</div>
	    	</div>
	    	<div class="b-content ">
	    		<div class="bc-content">
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t3100/167/2731576896/412836/ea543261/57e52011N97ac7286.jpg!q90.webp" alt="">
	    				<p>北极绒 全棉斜纹纯色四件套 高支高密床品套件 爱巢 标准号200*230cm</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img10.360buyimg.com/mobilecms/s100x100_jfs/t5632/170/3324435742/607174/747165a8/593ac1f5N0bf7f5ae.jpg!q90.webp" alt="">
	    				<p>南极人四件套纯棉床上用品全棉床品套件1.5-1.8米床适用(被套2X2.3米) 爱巢/推荐花色</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img13.360buyimg.com/mobilecms/s100x100_jfs/t4606/188/1227537591/582457/406df784/58da45d2N41a4b043.jpg!q90.webp" alt="">
	    				<p>【京东超市】雅鹿·自由自在 四件套家纺  床上用品全棉斜纹套件 1.5米/1.8米床适用 被套200*230cm 晚晴</p>
	    			</a>
	    		</div>
	    		<div class="bc-content">
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t5644/122/2711857687/417760/4b8dbd73/5932826bN97c51eca.jpg!q90.webp" alt="">
	    				<p>方若 纯棉斜纹四件套 全棉婚庆床品套件 推荐款/ 欣雅/蓝</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img10.360buyimg.com/mobilecms/s100x100_jfs/t3199/365/2537996780/377471/c0d8a6e1/57e33defNc6461770.jpg!q90.webp" alt="">
	    				<p>富安娜家纺 床上用品纯棉斜纹四件套全棉床单1.8m套件 克拉恋人 1.8米床适用（230*229cm）绿色</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img11.360buyimg.com/mobilecms/s100x100_jfs/t2821/299/1866529924/377509/93432621/574d0e1dN75947248.jpg!q90.webp" alt="">
	    				<p>富安娜家纺  纯棉套件床单床上用品全棉斜纹四件套 南国佳人 南国佳人 1.5米(5英尺)床</p>
	    			</a>
	    		</div>
	    	</div>
	    	<div class="b-content ">
	    		<div class="bc-content">
	    			<a href="#">
	    				<img src="https://img10.360buyimg.com/mobilecms/s100x100_jfs/t4225/51/2441838275/605882/dd1e029d/58d16144N8c39351f.jpg!q90.webp" alt="">
	    				<p>Apple iPad 平板电脑 9.7英寸（32G WLAN版/A9 芯片/Retina显示屏/Touch ID技术 MP2F2CH/A）深空灰色</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t5845/146/1408776922/130982/8641cd19/592657d9N621a118d.jpg!q90.webp" alt="">
	    				<p>联想(Lenovo)小新潮5000 15.6英寸笔记本电脑(i5-7200U 4G 1T+128G 2G独显 FHD Office2016)银</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img10.360buyimg.com/mobilecms/s100x100_jfs/t3079/363/6070979658/42126/5b5c2f39/589af086N4a3bed39.jpg!q90.webp" alt="">
	    				<p>联想(Lenovo)拯救者R720 15.6英寸游戏笔记本电脑(i7-7700HQ 8G 1T GTX1050 2G IPS 黑)</p>
	    			</a>
	    		</div>
	    		<div class="bc-content">
	    			<a href="#">
	    				<img src="https://img14.360buyimg.com/mobilecms/s100x100_jfs/t5917/15/9527092940/316212/6fc565f1/5993b67dN227fc614.jpg!q90.webp" alt="">
	    				<p>【京东仓配 晒单送豪礼】苹果Apple 新款iPad平板电脑 air2更新版9.7英寸 金色 新款128G WLAN版+皮套+钢化膜</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t7174/89/1738853882/244229/e6a5e8e4/598d6d5cN684f1beb.jpg!q90.webp" alt="">
	    				<p>微星（MSI）GL72M 7REX-817CN 17.3英寸游戏笔记本电脑(i7-7700HQ 8G 1T+128GSSD GTX1050TI 4G WIN10)黑</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img13.360buyimg.com/mobilecms/s100x100_jfs/t6385/88/2158837015/157373/cf673963/595dd395N0ffebd47.jpg!q90.webp" alt="">
	    				<p>小米(MI) Air 12.5英寸全金属超轻薄笔记本电脑(Core M-7Y30 4G 128G固态硬盘 全高清屏 背光键盘 Win10)金</p>
	    			</a>
	    		</div>
	    	</div>
	    	<div class="b-content ">
	    		<div class="bc-content">
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t5878/129/6758299859/557238/29b0514e/596bc75eN77cd92f0.jpg!q90.webp" alt="">
	    				<p>淳正 春秋夹克男韩版修身男士休闲外套薄款立领青年棒球服短款外衣2017新款男装872182 黑色 L/165-170（适合55-60KG）</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t5878/129/6758299859/557238/29b0514e/596bc75eN77cd92f0.jpg!q90.webp" alt="">
	    				<p>淳正 春秋夹克男韩版修身男士休闲外套薄款立领青年棒球服短款外衣2017新款男装872182 黑色 L/165-170（适合55-60KG）</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t5878/129/6758299859/557238/29b0514e/596bc75eN77cd92f0.jpg!q90.webp" alt="">
	    				<p>淳正 春秋夹克男韩版修身男士休闲外套薄款立领青年棒球服短款外衣2017新款男装872182 黑色 L/165-170（适合55-60KG）</p>
	    			</a>
	    		</div>
	    		<div class="bc-content">
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t7546/14/1678504488/406698/ddf4e3b8/599ee85eN29676cec.jpg!q90.webp" alt="">
	    				<p>苹果夹克男薄款外套男士修身韩版茄克2017棒球服男潮 绅士黑 XL</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t7546/14/1678504488/406698/ddf4e3b8/599ee85eN29676cec.jpg!q90.webp" alt="">
	    				<p>苹果夹克男薄款外套男士修身韩版茄克2017棒球服男潮 绅士黑 XL</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img12.360buyimg.com/mobilecms/s100x100_jfs/t7546/14/1678504488/406698/ddf4e3b8/599ee85eN29676cec.jpg!q90.webp" alt="">
	    				<p>苹果夹克男薄款外套男士修身韩版茄克2017棒球服男潮 绅士黑 XL</p>
	    			</a>
	    		</div>
	    	</div>
	    	<div class="b-content ">
	    		<div class="bc-content">
	    			<a href="#">
	    				<img src="https://img14.360buyimg.com/mobilecms/s100x100_jfs/t1852/296/2938383683/152254/63418ad7/56f53a09Ndcffdc3c.jpg!q90.webp" alt="">
	    				<p>李宁运动护腰带 男女保暖护腰透气健身收腹带 242黑色均码</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img14.360buyimg.com/mobilecms/s100x100_jfs/t1852/296/2938383683/152254/63418ad7/56f53a09Ndcffdc3c.jpg!q90.webp" alt="">
	    				<p>李宁运动护腰带 男女保暖护腰透气健身收腹带 242黑色均码</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img14.360buyimg.com/mobilecms/s100x100_jfs/t1852/296/2938383683/152254/63418ad7/56f53a09Ndcffdc3c.jpg!q90.webp" alt="">
	    				<p>李宁运动护腰带 男女保暖护腰透气健身收腹带 242黑色均码</p>
	    			</a>
	    		</div>
	    		<div class="bc-content">
	    			<a href="#">
	    				<img src="https://img14.360buyimg.com/mobilecms/s100x100_jfs/t3844/35/1573629724/102229/763881fe/58327ab2Naea214d3.jpg!q90.webp" alt="">
	    				<p>驰动竹炭护膝 运动护具 透气保暖护膝男女通用1对均码</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img14.360buyimg.com/mobilecms/s100x100_jfs/t3844/35/1573629724/102229/763881fe/58327ab2Naea214d3.jpg!q90.webp" alt="">
	    				<p>驰动竹炭护膝 运动护具 透气保暖护膝男女通用1对均码</p>
	    			</a>
	    			<a href="#">
	    				<img src="https://img14.360buyimg.com/mobilecms/s100x100_jfs/t3844/35/1573629724/102229/763881fe/58327ab2Naea214d3.jpg!q90.webp" alt="">
	    				<p>驰动竹炭护膝 运动护具 透气保暖护膝男女通用1对均码</p>
	    			</a>
	    		</div>
	    	</div>
	    </div>
	</div>
    <script>
    	//右边模块动效
    	function modelAnimateRight(id){
    		var box = document.getElementById(id);
    		var tabObjs = box.getElementsByClassName('b-tab-head')[0];
    		var bContents = box.getElementsByClassName('b-content');
    		var colorBlock = box.getElementsByClassName('bt-colorBlock')[0];
    		for (var i = 0,len=tabObjs.children.length; i < len; i++) {
    			(function(i){
	    			tabObjs.children[i].onmouseover = function () {
	    				for(j=0,len1=bContents.length;j<len1;j++){
	    					bContents[j].className = 'b-content';
	    				}
	    				bContents[i].className= 'b-content bc-active';
	    				colorBlock.style.left = 10 + (77*i) + 'px';
	    			}
    			}(i));
    		}
    	}
    	modelAnimateRight('box3');
    	//左边模块的动效控制
    	modelAnimate('box1');
    	modelAnimate('box2');
    	// modelAnimate('box1',{btns:'b-btn2'});
	    function modelAnimate(id,opts) {
	    	// var defaultOpts = {
	    	// 	btns:'b-btn',
	    	// 	subIndexs:'b_ind'
	    	// }
	    	// for (var index in opts){
	    	// 	if (opts[index]){
	    	// 		defaultOpts[i] = opts[index];
	    	// 	}
	    	// }
	    	var box = document.getElementById(id);
	    	var btns = box.getElementsByClassName('b-btn');
	    	var subIndexs = box.getElementsByClassName('b_ind')[0].getElementsByTagName('li');
	    	var bContents = box.getElementsByClassName('b-content');
	    	var i = 0;
	    	var t;
	    	var controler = {
	    		btnDir:'',
	    	} 
	    	function doAnimate(){
	    		if(controler.btnDir == ''){
		    		if(i>=bContents.length){
		    			i=0;
		    		}
		    		Animate(i);
			    	i++;
	    		} else if(controler.btnDir == 'left'){
	    			if(i<=0){
		    			i=bContents.length-1;
		    		} else {
		    			i--;
		    		}
		    		Animate(i);
		    		controler.btnDir = '';
	    		}
	    		function Animate(i){
	    			for (var j = 0,len=subIndexs.length; j < len; j++) {
	    				subIndexs[j].className = '';
	    				bContents[j].style.display = 'none';
	    			}
	    			subIndexs[i].className = 'bi-active';
	    			bContents[i].style.display = 'block';
		    	};
	    	}
	    	t = setInterval(doAnimate,3000);
	    	//下方按钮鼠标事件
	    	for (var i = 0,len=subIndexs.length; i < len; i++) {
	    		(function(i){
		    		subIndexs[i].onmouseover = function () {
		    			clearInterval(t);
		    			for (var j = 0,len=subIndexs.length; j < len; j++) {
		    				subIndexs[j].className = '';
		    				bContents[j].style.display = 'none';
		    			}
		    			this.className = 'bi-active';
		    			bContents[i].style.display = 'block';
		    		}
		    		subIndexs[i].onmouseout = function () {
		    			clearInterval(t);
		    			t = setInterval(doAnimate,3000);
		    		}
	    		}(i));
	    	}
	    	//控制左右侧按钮显示隐藏
	    	box.onmouseover = function(){
	    		clearInterval(t);
	    		for(var i=0,len=btns.length; i<len; i++){
	    			btns[i].style.display = 'block' ;
	    		}
	    	}
	    	box.onmouseout = function(){
	    		clearInterval(t);
	    		t = setInterval(doAnimate,3000);
	    		for(var i=0,len=btns.length; i<len; i++){
	    			btns[i].style.display = 'none' ;
	    		}
	    	}
	    	//左右侧按钮鼠标事件
	    	btns[0].onclick = function(){
	    		controler.btnDir = 'left';
	    		doAnimate();
	    	}
	    	btns[1].onclick = function(){
	    		controler.btnDir = '';
	    		doAnimate();
	    	}
	    }
        
    </script>
</body>
</html>